-module(gz_app).
-behaviour(application).
-export([start/2,stop/1]).

start(normal,[])->	
	
	start_loggger(),
	
    [Port, _Acceptor_num, _Max_connections] = config:get_tcp_listener(),
    [Ip] = config:get_tcp_listener_ip(),

	{ok, SupPid} = gz_sup:start_link(),
	{ok,SupPid}.

stop(_State)->
	ok.
	
start_loggger()->
	Log_level = config:get_log_level(),
    Log_type = config:get_log_type(),
    Logger_no = config:get_log_node(),
    loglevel:set(tool:to_integer(Log_level),tool:to_integer(Log_type),Logger_no).